package com.lagou.builder;



public class ComputerBuilder {
    private final Computer computer = new Computer();

    public ComputerBuilder installDisplayer(String displayer){
        computer.setDisplayer(displayer);
        return this;
    }

    public ComputerBuilder installMainUnit(String mainUnit){
        computer.setMainUnit(mainUnit);
        return this;
    }

    public ComputerBuilder installmouse(String mouse){
        computer.setMouse(mouse);
        return this;
    }

    public ComputerBuilder installkeyboard(String keyboard){
        computer.setKeyboard(keyboard);
        return this;
    }


    public Computer getComputer() {
        return computer;
    }
}
